package ch.esn.client.view;

import ch.esn.client.presenter.view_interface.EditProfileViewInterface;

import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.Window;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;

public class EditProfileView extends Window implements EditProfileViewInterface {

	LayoutContainer mainLC;

	public void createView() {
		mainLC = new LayoutContainer(new FitLayout());

		maskAll();

		setMinimizable(true);
		setMaximizable(true);
		setHeading("Profile");
		setSize(800, 600);
		setLayout(new FitLayout());

		add(mainLC);
	}

	public Window getWindow() {
		return this;
	}

	public void maskAll() {
		mainLC.mask("Loading...");
	}

	public void unMaskAll() {
		mainLC.unmask();
	}

}
